using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Http;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net.Http;
using System.Threading.Tasks;

namespace Geekeradmin.Authorize
{
    [AttributeUsage(AttributeTargets.Class | AttributeTargets.Method, AllowMultiple = true)]
    internal class UserAuthorizeAttribute : AuthorizeAttribute
    {
        public static string AppID { get; set; }

        /// <summary>
        /// 指定客户端访问API
        /// </summary>
        /// <param name="appID"></param>
        public UserAuthorizeAttribute(string appID = "") : base("UserApp")
        {
            AppID = appID;
        }
    }

    internal class UserAuthorizationRequirement : IAuthorizationRequirement
    {
        public UserAuthorizationRequirement()
        {
        }
    }
}
